<?php

include_once "funct.php";

global $lang;

if (!isset($_SESSION["admin"]))
	iesire();
else
	$user = user(clean($_SESSION["admin"]));
if ($user === false || $user["logat"] == 0)
	iesire();
//in variabila $user vor fi stocate toate datele despre un utilizator
if (!isset($_GET["display"]))
	$_GET["display"] = "battles";
else
	clean($_GET["display"]);

$title=$lang["admin"];

include_once "html.php";

$continut='
<form action="modify.php" method="post">
<table>
	<tr>
		<td style="width:200pt;">
			'.$lang["active-site"].'
		</td>
		<td style="width: 400pt;">
			<select name="a_site" class="input">
				<option value="1">'.$lang["active"].'</option>
				<option value="2">'.$lang["inactive"].'</option>
			</select>
		</td>
	</tr>
	<tr>
		<td style="width:200pt;">
			'.$lang["banner-top"].'
		</td>
		<td style="width: 400pt;">
			<textarea name="banner-top" class="input" placeholder="'.$lang["banner-top"].'..."></textarea>
		</td>
	</tr>
	<tr>
		<td>
			'.$lang["banner-right"].'
		</td>
		<td>
			<textarea name="banner-right" class="input" placeholder="'.$lang["banner-right"].'..."></textarea>
		</td>
	</tr>
	<tr>
		<td>
			'.$lang["delete-user"].'
		</td>
		<td>
			<input type="text" name="delete-user" class="input" placeholder="'.$lang["name"].'..." />
		</td>
	</tr>
	<tr>
		<td>'.$lang["suspend-user"].'</td>
		<td><input type="text" name="suspend-user" class="input" placeholder="'.$lang["name"].'..." /></td>
	</tr>
	<tr>
		<td>'.$lang["un-suspend-user"].'</td>
		<td><input type="text" name="un-suspend-user" class="input" placeholder="'.$lang["name"].'..." /></td>
	</tr>
	<tr>
		<td>'.$lang["battless-played"].'</td>
		<td><input type="number" name="battless-played" class="input" placeholder="Nr..." /></td>
	</tr>
	<tr>
		<td>'.$lang["time-battless1"].'</td>
		<td><input type="number" name="time-battless1" class="input" placeholder="Nr..." /></td>
	</tr>
	<tr>
		<td>'.$lang["time-battless2"].'</td>
		<td><input type="number" name="time-battless2" class="input" placeholder="Nr..." /></td>
	</tr>
	<tr>
		<td colspan=2><br/><br/><input type="submit" class="buton" value="OK" /></td>
	</tr>
</table>
</form>
';

echo $header . '' . $continut . '' . $footer;
?>
